/**
 * Project Name:UIMS
 * File Name:SysOperatorLog.java
 * Package Name:com.bgi.uims.module.sys.loginlog.dto
 * CreateDate:2015年3月23日 上午10:29:50
 * Copyright (c) 2015, BGI_DX All Rights Reserved.
 */     

package com.bgi.uims.module.sys.operatorlog.dto;

import java.util.HashMap;
import java.util.Map;

import com.bgi.uims.common.dto.Common;

/**
 * ClassName:SysOperatorLog 
 * Function: TODO 
 * Reason:	 TODO 
 * @CreateDate:2015年3月23日 上午10:29:50
 * @author   tantianhua
 * @version  
 * @since    JDK 1.7
 * @see 	 
 */

public class SysOperatorLog extends Common {
	/**  
	 * serialVersionUID:TODO（用一句话描述这个变量表示什么）  
	 */   
	private static final long serialVersionUID = -26564776301944647L;
	/**
	 * 主键
	 */
	private String operatorId;
	/**
	 * 工号
	 */
	private String workNumber;
	/**
	 * 操作人员ID号
	 */
	private String userId;
	/**
	 * 登录名
	 */
	private String userName;
	/**
	 * 真实姓名
	 */
	private String realName;
	/**
	 * 操作IP
	 */
	private String operatorIp;
	/**
	 * 操作模块
	 */
	private String operatorModules;
	/**
	 * 操作内容
	 */
	private String operatorContent;
	/**
	 * 操作类型[增加：1  删除：2  修改：3  查询：4]
	 */
	private String operatorType;
	/**
	 * 操作表的表名  
	 */
	private String operatorTable;
	/**
	 * 操作表的数据的ID号
	 */
	private String operatorTableId;
	/**
	 * action链接
	 */
	private String operatorUrl;
	/**
	 * 记录创建时间
	 */
	private String createTime;
	
	public String getOperatorId() {
		return operatorId;
	}
	public void setOperatorId(String operatorId) {
		this.operatorId = operatorId;
	}
	public String getWorkNumber() {
		return workNumber;
	}
	public void setWorkNumber(String workNumber) {
		this.workNumber = workNumber;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public String getOperatorIp() {
		return operatorIp;
	}
	public void setOperatorIp(String operatorIp) {
		this.operatorIp = operatorIp;
	}
	public String getOperatorContent() {
		return operatorContent;
	}
	public void setOperatorContent(String operatorContent) {
		this.operatorContent = operatorContent;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getOperatorType() {
		return operatorType;
	}
	public void setOperatorType(String operatorType) {
		this.operatorType = operatorType;
	}
	public String getOperatorTable() {
		return operatorTable;
	}
	public void setOperatorTable(String operatorTable) {
		this.operatorTable = operatorTable;
	}
	public String getOperatorTableId() {
		return operatorTableId;
	}
	public void setOperatorTableId(String operatorTableId) {
		this.operatorTableId = operatorTableId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getOperatorModules() {
		return operatorModules;
	}
	public void setOperatorModules(String operatorModules) {
		this.operatorModules = operatorModules;
	}
	
	public String getOperatorUrl() {
		return operatorUrl;
	}
	public void setOperatorUrl(String operatorUrl) {
		this.operatorUrl = operatorUrl;
	}
	/**
	 * 将对象的信息以map形式返回，作为存储日志信息时的比较和存储
	 */
	@SuppressWarnings("rawtypes")
	public Map annotationObject(){
		Map<String,String> results = new HashMap<String, String>();
		results.put("object","操作日志");//必须有,对象描述
		results.put("table","sys_operator_log");//必须有,表名描述
		results.put("tableId",this.operatorId);//必须有,表名描述
		results.put("describe","用户名"+this.userName);//必须有,可以指定到具体某一条，即该条的独有特性,可以描述此记录
		results.put("操作日志ID号", this.operatorId);
		results.put("用户名", this.userName);
		results.put("用户工号", this.workNumber);
		results.put("用户真实姓名", this.realName);
		return results;
	}
}
